Arrays.sort() vs Collections.sort()


Posted by Rich on 2022-08-10

差別是:

  1. Collections 是給 List 用的,Arrays 是給 array 用的。
  2. Collections 用 binary sort, Arrays 用 merge sort

連結










Related Posts

Laravel and Cypress integration

Laravel and Cypress integration

[ 紀錄 ] 部屬 AWS EC2 雲端主機 + LAMP Server + phpMyAdmin

[ 紀錄 ] 部屬 AWS EC2 雲端主機 + LAMP Server + phpMyAdmin

申請 Google 快速登入會員功能

申請 Google 快速登入會員功能


Comments